package com.ley.dish.web.shop.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ley.dish.mapper.ShopMapper;
import com.ley.dish.web.shop.entity.Shop;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper,Shop> implements ShopService {

    @Override
    public List<Shop> findAllShop() {
        return baseMapper.findAllShop();
    }

    @Override
    public Page<Shop> findAllShopPage(Page<Shop> page) {
        page.setRecords(baseMapper.findAllShopPage(page));
        return page;
    }
}
